* beginning changes to use pure sqlalchemy