code: function(model, db, options) {
  		// a single model
  		if (!isCollection(model)) return db.get(model.id, options.options.get);
  
  		// process query requests
  		if (options.query) return db.query(options.query, options.options.query);
  
  		// regular collection fetch
  		return db.allDocs(options.options.allDocs);
  	}
docs: /* #### options.fetch()
  
  This method controls how the sync function will fetch data. The method currently handles normal gets and queries.