lastAccount = profile.tryLoadAccount(db, acct_name);
if (lastAccount == null)
lastAccount = new LedgerAccount(acct_name);
else lastAccount.removeAmounts();
profile.storeAccount(db, lastAccount);
lastAccount = profile.tryLoadAccount(db, acct_name);
if (lastAccount == null)
lastAccount = new LedgerAccount(acct_name);
else lastAccount.removeAmounts();
profile.storeAccount(db, lastAccount);