Well, it is a democracy, the key being that the majority of people voted for some law. Whether you'd want to live in the country is a different story. Sometimes, democracies are not always the best form of government, they are as susceptible to systemic issues as any other form of government.
So you do not understand what a democracy is and how it works.
Balance of the three branches of government and the rule of law and protection of minorities are the complementary requirements to the majority vote, to qualify for a democracy.