added sails-mongo connection
interval images from front end to server. need to move event to server side rather than client side