slowly changing dimenstions implemented using sqlalchemy