Cavity filling

I’m 19 weeks today and I just got 3 cavity’s filled and I’m really scared about my baby. They only did the shot. They said it was fine, But right after I felt the babies heart racing and I started getting a lot of pain in my uterus I don’t know if its just my anxiety or not but I’m really freaking out. Any advice???