modified sails mongoose module