Changed way db connection info is read to uri format with replica set