added connection to MongoDB