The Sfas Emes explains a puzzling Midrash about David Hamelech's daily schedule