ev prototype
Triggers on insert and update event