Add support for MongoDB database.