The separation of powers in three branches is not strictly necessary for a democracy, just a mechanism through witch it is attained. Surely, there could be examples where the powers are slpit another way that could still qualify as democracies.
If, somehow, the will of the people were to accept spying as a cornerstone of their society, trading privacy for safety, would it still be a democracy?
Anyways, sorry, for nitpitcking, but something just sounds... incomplete in your answer.