Continue updating queries to sqlalchemy