emit insert is fired BEFORE the element is indexed. This way it can be modified, and changes are indexed
update event is fired BEFORE updating the object, and together with the update object
little bug introduced in previous commit fixed
update is emitted before executing the update also in NDDBIndex
INSERT is emitted before adding element to db