Changed on indexed db and web sql examples callbacks to events