In the bible slavery, polygamy, genocide are all fine.
I get that you might have some difficulty accepting that its not to be taken literally, its a common disorder among techies, we have a difficult time accepting that not everything means exactly what it says sometimes since we tend to work in technical absolutes as much as possible ... but if you are so utterly stupid that you think it 'approves' of those things then I realize I'm wrong, you're not that stupid, you're that ignorant.
Let's just take a look at mass murder. I'm sure you remember the story about the walls of Jericho, right?
Then the Lord said to Joshua, "See, I have delivered Jericho into your hands, along with its king and its fighting men.["] ... Joshua commanded the army, "Shout! For the Lord has given you the city! The city and all that is in it are to be devoted* to the Lord ... so everyone charged straight in, and they took the city. They devoted the city to the Lord and destroyed with the sword every living thing in it - men and women, young and old, cattle, sheep and donkeys... Then they burned the whole city and everything in it, but they put the silver and gold and the articles of bronze and iron into the treasury of the Lord's house... So the Lord was with Joshua, and his fame spread throughout the land.
Maybe that doesn't fit the exact description of genocide, but it is GOD commanding mass murder.
This is my favorite sentence from that chapter:
All the silver and gold and the articles of bronze and iron are sacred to the Lord and must go into his treasury.
See, the Creator of the Universe needs some cold hard cash, similar to today. You'd think he'd be even better than the fed at printing money being the all powerful ruler of everything, but alas, no.
Regarding the actual definition of genocide, this is him saying to commit genocide:
For the day has come to destroy all the Philistines and to remove all survivors who could help Tyre and Sidon.
Show me where, in anything that I just posted, that it says not to take it literally, because it looks literal to me. Or do you mean that your pastor told you not to take it literally?
The bible as a work of literature has its exemplary moments, and I would encourage everyone to read it, from start to finish. But as a book on morality it is severely lacking in that you can never tell what to take literally, and what to not take literally. I guess use your own judgement? Well, you don't need the bible to do that.
*The Hebrew term refers to the irrevocable giving over of things or persons to the Lord, often by totally destroying them