Well, I haven't studied the Bible in a formal academic approach like Annah, but I have made a study of religion and myth simply out of amateur personal interest. I have found that whether you are talking about the Bible, the Quran, the Torah, or even the Enuma Elish, these ancient tales can only really be truly appreciated and understood if you interpret them in the contexts of the times and cultures in which they were written.
Language and culture evolve over time such that the definitions, grammar, metaphors, and other literary paradigms in use during one time period can become completely different a few thousand years later. As such, trying to interpret an ancient text from a modern paradigm can lead to some serious false conclusions. For example, a common metaphor in today's society is to say that it "rained cats and dogs". If a future historian five thousand years from now were to interpret that phrase from the point of view of it being "the literal words of the 21st century prophets", she might think felines and canines fell from the skies until the grounds was covered with oodles of poodles and puddles of pussycats when that is patently not what is intended by the metaphor. Heck, I have seen people get into fistfights over the proper interpretation of the Second Amendment to the US Constitution, and that is a single, very concise passage written a mere 2 centuries ago, not thousands of years in the past.
I will say that the Bible as I understand it now is a very different book from what I was taught in Sunday School as a child.
As for Sodom and Gomorrah, I think the whole point of the story is that we should treat each other honestly, respectfully, and with good will lest we suffer the consequences.
Peace, y'all.