Comparison of democracy and republic