update auto to mongoengine