Update orm.py

update for newer pymongo