DB/SAI fix some event_flags and other conversion issues

Closes #9144