Added support for mongodb <3