slight changes done in mongoConnectivity