realizes I was using straight sqlalchemy instead of flask-sql alchemy to create the database and queries. Using the latter opens up a few more options and such so I switch quick. was able to delete database.py and make the connection from __init__.py