In Psalm 22 David is picturing the cross of the Good Shepherd, and in Psalm 24 David is picturing the glory of the Good Shepherd and His strong and mighty intervention. Psalm 23 describes the time in-between. The time between the cross and the King of glory coming again. The time in-between that involves green pastures and also valleys of the shadow of death, comfort and fear, cups running over and enemies, goodness and mercy and dreams of dwelling in the house of the Lord.