Some fixes for the change in db.command for replicaset