Using SQLAlchemy sessions instead of cursor for all queries