Trigger initialization started

* TODO: conditionals in triggers
* Synced collections now set ID and only update changed rows