implement a workaround to know the "rowsAffected" on indexedb implemetaion