indexeddb: implemented deletion events, fixed deletion of parents etc.