repair mongoDB connection