hi i had gone through your query and understand your concerns. i would come up with two possibilities
1.the first one include,RENAL STONES;ultrasound
scanning for KUB may confirm the diagnosis
2.second possibility is,PEPTIC ULCER;upper gastro intestinal endoscopy
may confirm the diagnosis.
I hope this is helpful for you, thank you