It seems odd to claim both that:
- This government program is widely hated
- We have a functioning democracy
- This government program is widely hated
- We have a functioning democracy
Non-democratic republics include 18th-century USA, where only white male landowners could vote. Democratic non-republics include the UK, which is a monarchy. "Republicanism" and "democracy" are orthogonal concepts.