DB/SAI: fixed some startup errors

Updates https://github.com/TrinityCore/TrinityCore/issues/13256
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore