Fear of dentist.

So I had to go to the dentist today. In extreme pain. I knew my teeth were bad (fear of dentist has stopped me going) but wasnt expecting to be told I have 12 visible cavities!! And can't have work done until after my baby is born. He patched the worst one up with a temp. I'm hoping to be sedated then and have them fixed in one go. Anyone know any safe pain relief whilst pregnant?