Query mongodb replica set