Psalm 6 is also considered a Psalm of penitence. It was written when David, aware of sin, is coming to the lord for his mercy and renewal. In a religious culture, sinning often times leads people to be judged/feel judged and therefore leaving the church. This should not be the case. We learn from this Psalm how to handle it, and the best way is to come to god with our guilt and honesty.