Initializing hooks to subscribe events to prepare an audit trail