Add support for MongoDB history