Accounting to db, duplicate entries (again)