DB/Misc: Fix db errors
Core: Fix warnings
Merge branch 'master' of git://github.com/TrinityCore/TrinityCore into teste2