Moves MongoDB configuration to json file.