function makeLoader(coll) {
        var collOptions = options[coll.name];
        var inflater;

        if (collOptions.proto) {
          inflater = collOptions.inflate || Utils.copyProperties;

          return function (data) {
            var collObj = new (collOptions.proto)();
            inflater(data, collObj);
            return collObj;
          };
        }

        return collOptions.inflate;
      }
Inflates a loki database from a JS object

@param {object} dbObject - a serialized loki database string
@param {object=} options - apply or override collection level settings
@param {bool} options.retainDirtyFlags - whether collection dirty flags will be preserved
@memberof Loki