Bacterial vaginitis

I am 23 weeks as of yesterday and today was told I have a bacterial infection. I've been cramping worse than normal and a dull ache in my lower stomach. Anyone else experience this? They gave me a cream to use but still worried about the cramping pains.