James Harden scored 33 points as the Houston Rockets edged out the Sacramento Kings for their first win of the season.