fix DB errors for TrinityCore/TrinityCore@9bac986