Religions have been upgraded from the beginning of time, each time by the men living at that time. Even if there was a god, men wrote the stuff. This is evolution. God is a concept, and as a concept it exists in the heads of believers, but there still is no physical god. It may teach a moral code, but those are easy to separate from the religion.
When we look at the middle east today, it is obvious that religion must be eliminated if there is ever going to be peace. Treat others as you would like to be treated, and go from there.
But what do I know?