Change modification events to provide only the ID
For now, all modification callbacks are fired manually.
This has 2 main drawbacks:
- We have to do it manually :)
- When something happens due to a trigger, we have no way of knowing
So instead, use the same sqlite hooks that are used for deletion, and send the notification with the modified entities IDs.