Democracy does not equal liberty. It may, arguably, be the best way of preserving liberty. But then again it may not.
"Many will be shocked to learn that the word “democracy” was neither used in the Declaration of Independence nor in the Constitution. Indeed, the Founding Fathers were anxious and fearful of allowing any form of tyranny, including the tyranny of the majority." [1]
[1] https://www.cato.org/publications/commentary/democracy-versu...