fix pymongo autoreference bug in dbhelper