using declarative extension of sqlalchemy