Dictatorial regimes don't follow moral codes. Are you new here on Earth? Your Bible did not save Christians or Jews who were killed in Auschwitz, nor it prevented Christians from killing other Christians or Jews.
Every society follows some kind of moral code.
Sometimes that code can be as simple as the strongest rule and the weak are slaves. Usually it's more complex.
Democratic rule does not prevent tyranny it is not exempt from injustice and immorally. Review the history of Athens if you want to understand this better.
Tyranny of the majority was one of the greatest concerns of the US founding fathers. It the reasons they took such great effort to limit the power of direct democracy. Everything from the selection of Senators by state representatives, the selection of the president via the Electoral College, and the limits of voting to land owners were all attempts to lower the risk of a tyrannical mob rule.
Your stated standard is "you are automatically a good person if you are following the moral code that your society accepts." This is a very problematic code that highlights the profound detachment from reality your philosophy and atheism leads into.
I noticed you did not really refute my examples above. Via your standard any horror if accepted by a society becomes "good" and the perpetrators of said horror are "good people". With this standard you are lost in a morass of relativism a natural consequence of rejecting the divine.
You think the Bible will save you from a dictatorship? You are confusing your delusional religious beliefs with political systems.
...
Judeo-Christian ideology is no different than other inhumane ideologies. Nazism and Communism included.
You lack an understanding of the pivotal role of the Judeo-Christian tradition in facilitating coordination and driving progress over time.
I discussed this topic in some depth here:
Religion and Progress
You were raised religious and brought up to accept and worship God. You and later rejected both that tradition and God. We have real issues of dispute we should not waste our time on word games.
...
What I saw, was corruption, abuse on pretty much every level imaginable.
God rejected him, in any case. If god wanted us to know about his existence, he would know exactly what to do to show us. And no, this wouldn't take away my free will, he wouldn't need to force me, just show me enough proof. Logically god makes no sense in any way you can think about it.