refactoring, mongo validation, heroku for mongo