Fixed MongoDB connection