DB/SAI: Fix runtime error 4856

By Fateswhisper, closes #11907