make module work with pulling data from secondary servers in mongo replica set