Fixing disconnect from mongoengine