revising schema, blending data models ec, sql-ledger and a custom one