What is the difference between a direct democracy and a republic?