Your over complicating the issue. The majority, or the largest group, vote for a particular option, whether its voting for a party to govern the country or a choice of two options in a referendum, or President of a country.
Of course this doesnt produce pure unadulterated Democracy. Nothings perfect. The examples I was giving in my earlier post were examples of people either perverting the system for their own ends, and trashing Democracy in the process, or in the case of the last Parliament, just ignoring the result of the referendum altogether, and again trashing the most basic principles of democracy altogether.
In the case of the referendum Parliament voted to have it, on the understanding that the result would be implemented, and then many of them tried everything they could think of to stop that from happening, while pretending they were doing nothing of the sort.
By any reasonable measure, that isnt Democracy, any more than Trump supporters trying to convince everyone that the Presidential election should be rerun because they dont like the result.