Mongo connect class to connect to MongoDB