Fix MongoDB configuration.