Update mongoDB connection