MongoDB integration for the docmgr