I have written a method to read and write data from IDB with Dexie in one transaction:
transactionalRW(table: