Added logic to switch from local mongo instance to prod replicaset (setup for object rocket)