Embarrassing question

I had sex last night and anyways I went to the bathroom and heard a few clumps and was like wtf... Looked like what was a TON of mucus plug. I'm almost 23 weeks. Now I'm just over all super crampy and uncomfortable. Any advice or tips?