https://hdtubex.biz/the-mysterious-case-of-attributeerror-engine-object-has-no-attribute-cursor/