God didn't set Israel up as a democracy. He appointed Moses and leaders from each tribe to serve as judges, military leaders, and a council of elders. It was more of a theocratic republic with some democratic features at the local level.
Numbers 1:1-15