more sophisticated change for sqlalchemy. 0002