MongoDB only loaded if referenced in config file