PIM-3264: full ORM/Mongo support