add mongodb replicaset support

the pymongo library will automatically determine which host is the
primary and direct writes to that host.