thanks for using Health Care magic .
I would be pleased to answer your question
, heart burn and pain in the upper abdomen are signs that there is some occult blood and bleeding into your stomach or upper intestines which might be giving rise to such symptoms .
i would suggest that you should get an endoscopy
done which will give you better answers to your queries.
For your UTI
you should surely be looking into treating your infection with antibiotics provided by your doctor .
Thanks and Take Care