Add debugging info for MongoDB connection.