david praising god in the midst of trouble