mongdb setup scripts with a replica set