debugged the logging code, sqlalchemy messages are still printing out though and i'm not sure how to fix that