WIP updating the AccountEntries in SQL on Ledger close