Moved mongo_database_name and collection init to where it's needed.