uti help ladies

I just found out I had a uti which is bad they placed me on macrobid 100mg I'm just nervous and scared I will have a miscarriage between the light cramping here and there between Stomach pains and back please help thanks ladies I'm 4weeks