Enhance mongoDB connection