DB/SAI: fixed some startup errors

Updates https://github.com/TrinityCore/TrinityCore/issues/13256