There is some reason to think Democracy does allow people who try to appeal to the mob or sectarian hatred. I believe in Indonesia the democratization process led to increased anti-Chinese riots. The Chinese really did have higher per-capita income and wealthy minority groups sometimes do attract popular hostility.