[core] updated models.py to target mongoengine