fix mongodb configs.