Functions for connecting to MongoDB and performing operations there.
Currently located only in MongoDB branch.