Adaptation to new versions of mongo_db and objectory