I agree with you. An example of how bad things can get, we can look at ISIS. people governing a with religious rules will never go any good, mostly because religious rules were created a very long time ago for a completely different world.
That's an extremely selective example to support your view. For an example of the opposite, look at the Khmer Rouge, which governed with a specifically anti-religious stance, committed genocide and torture, and starved a large portion of their population. Or consider Stalin and Mao, who killed tens of millions each, or even the French Revolutionaries, who killed tens of thousands without trial.
Religion is not the source of evil, either in individuals or in governments. Evil is in people's hearts. Sometimes it is expressed via religious action, unfortunately. But the two should not be conflated.
"I believe you find life such a problem because you think there are the good people and the bad people; you are wrong, of course. There are, always and only, the bad people, but some of them are on opposite sides."