Added support for mongodb.