Fixed an issue with the model event listeners beeing attached to early.
Refactoring of IDBStorageBackend.