Modified mongoclient class batter in