adding support for mongo replicaset
adding support for insert method