IF that is all that is being said here in your opinion...........YOU my friend are missing the whole concept!
calvin hit it on the head in comment #67...............
"Does that mean that the act which brings about conception is sin? Does that mean that David's mom was not married to his dad?

What was the occasion for this lamentation? ie is v5 a 'one liner'; a quotable quote, or does it have a context?"
Absolutly there is a context and Stan is missing it completely.
Psalms 51:1-3
"Have mercy upon me, O God, according to thy lovingkindness: according unto the multitude of thy tender mercies blot out my transgressions. Wash me throughly from mine iniquity, and cleanse me from my sin. For I acknowledge my transgressions: and my sin is ever before me."
Sin is always complicated. It is never simple!
It is goodness that is simple!There are several words that David uses to describe his sin.
Transgressions.
To transgress is to step over the boundries of God. God has put up certain boundries in this life. He has certain physical laws. He has certain moral laws. He has certain spiritual laws. Any time man attempts to step over those laws, he will always suffer the consequences. To do that is always called
TRANSGRESSION.
Iniquity
Iniquity means that which is altogether wrong. You can not excuse it. You can not apologize for it. You can not in any condone it. There are two words translated with the English word SIN. In verse #2 and #3 it is the Hebrew word:
CHATTATH which means "sin offering".
In verse #4 it is CHATA.....translated in the Septuagint by the Greek word HAMARTIA meaning ...........................
"TO MISS THE MARK"!
We do not come up to God's standard and it is in that sense that all of us today are SINNERS!!!!!
Romans 3:23......
"All have sinned and come short of the glory (Standard) of God".
Evil
This means something that is actually wrong. In our day today we have preachers who condone all kinds of immorality. The Word of God is very clear on what is right and what is wrong. God is unmistakably certain on these things. EVIL is what is actually wrong. David uses the word to speak of the fact that he was wrong!!!!!!
Now with all that said to show you that there is a lot more here than just a simple comment and to get at the CONTEXT to which calvin correctly advised..............lets look at verse 4
Psalms 51:4....
"Against thee, thee only, have I sinned, and done this evil in thy sight: that thou mightest be justified when thou speakest, and be clear when thou judgest."
Now..........was his sin against God? Certainly.
But wasn't it also against Bathsheba??? Absolutely!!!
Wasn't his sin againt his family?? ABSOLUTELY!. He already had a family at that time.
Wasn't his sin against society??? YES!.
Wasn't his sin againt Jerusalem??? YES!
But in the final analysis, SIN IS ALWAYS AGAINST GOD!!!
Then in verse 5 David makes it clear that sin goes back to a sin nature.......
Verse #5
"Behold, I was shapen in iniquity; and in sin did my mother conceive me."
There are those who believe and teach that they are all right and are not senistive to sin. THey believe that because they accepted Christ that they are free from sin and in fact can not sin ever again.
Consider the Bible first ..........
Eccl. 7:20
"There is not a man upon earth that doest good, and sinneth not".
Prov. 30:12
"There is a generation that are pure in their own eyes, and yet is not washed from their filthiness".
Rom. 7:18
"For I know that in me (that is my flesh) dwelleth no good thing".
David you see went right down to the root of the matter and confessed that he had a sin nature.