using declarative sqlalchemy approach.