Wrapper connection to MongoDB