Division of powers isn't something inherent in democracy; it's explicitly laid down in most constitutions. With raw democracy, minorities get trampled, and there's no recourse, because it's the will of the people.
There's a reason Plato called it the second worst form of government, only after a malevolent dictatorship.