Thanks for query,
You have got chronic infection in urinary tract
,causing all distressing symptoms.
This time as you got pain on right side below rib cage
i.e.it seems renal colic
You go for urine,routine and culture.
After culture report go for long course of antibiotic.
Go for ultra sound
to rule out kidney stones and other pathology in kidney.
Take plenty of water.
ok and bye.