DB/Errors: Misc db error fixes

Db errors fixed by @untaught PrevQuest fixes by @dr-j and @Crysicle
Fixes #10370 Fixes #5064 Partially takes care of #10747 - more to come.
Just because....
Merge branch 'master' of https://github.com/TrinityCore/TrinityCore.git
Merge branch 'master' of https://github.com/chacal1231/Forsaken-Core.git