add replset connection to index.js