Added code to (hopefully) allow MongoDB to work on Heroku