Adding connection to MongoDB