Working mongodb replicaset