Changed loading of MongoDB connection to use configuration file