Added error check to MongoManager::get_database()