Adding support for MongoDB ODM

Updating previous PR #347.