Postgresql Bookkeeping and Accounting Engine