DB/Misc: Error fixes

Closes #13182
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore into ghbb