delete old ledgers and transactions from SQLite