Hi,
I had something very similar and the doctor prescribed me Mucinex DM. It was specifically for the hacking cough I had (day/night), which stemmed from drainage. It worked for me.
Hope you feel better!
if your mouth is dry try increasing your fluid intake and take some lozenges if your throat is sore.
sometimes after a cold i do the same thing.its gross but the thick mucus is like a sign the worst is over.it goes on for a couple of days then stops.but i was just diagnosed with sinusitis.i had a bad headache needed antibiotics.