update mongodb: support replica set