added mongoDB connection