Metaphorically, the extremes of suffering and depression (see Ps. 88:6; 130:1). David expresses a positive assurance that God will rescue him from the depths of distress and set him in a place of security.
Shalt quicken me.
Hope for the future is grounded in remembrance of the past.