Made DB selection from MongoClient more dynamic.