created a controller and a model in sails