After reading this Psalm, I realized that the theme is how the godly person should live. I put this here as a reminder to myself.
vs. 3-5: in repentance, confessing and acknowledging sin and receiving His forgiveness
vs. 6: pray
vs. 7: go to God for protection
vs. 8: listen to God's instruction and follow His leading
vs. 9: follow God cheerfully and willingly
vs. 10: trust Him
vs. 11: praise Him!