Production config of mongoid

Wasn't working on heroku.
Also moved to top to make it easier to see / find.