Finally found a nice & fast way to update the data object in IndexedDB every time a relevant part is changed!