fix mongoDB connect