Add support for mongodb.