connected to db using mongoclient