Corrected MongoDB connection creation bug.