moved definition of mongoengine in packages