UTI are common in femakles and moreover in pregnant females.
A UTI can be dangerous for your young one.the new born.
what is important here is to control this infection.
so hence your doctor is trying to do the same.
hope this helps.
and your stomach might be upset because of antibiotics.
try taking some antacid
.it shoulde help.