Add MongoDB connection helper