[UnifiedDataStore] Store events to DB before execute actions

It's needed to pass valid unifiedId to actions.

TODO: Investigate side effects