DB: Fix SAI broke by quest_end_script conversion

Closes #8995