added the latest sails-mongoose adapter with criteria