fixed bug in MongoConfig. The MongoDB database instance was getting
created for every request