Making IdbCallback generic to allow passing the different events types
of the IndexedDB API. This commit includes the event
IdbVersionChangeEvent which is useful to check the old/new version of
the database when upgrading.