code: function(className) {
        for (var i = 0; i < databaseLen; i++) {
          if (database["field" + i].regExp.test(className)) {
            return i;
          }
        }
        return -1;
      }
docs: Return database type number