custom event was triggered before return on webdb, other solution taken within idb only