More sqlalchemy conversion.