SQLAlchemy weirdly makes an unnecessary INSERT INTO command in a query command in the code below:
INSERT INTO
from pat