Thanks for writing your query.
After reading your post, it seems that you are having gastritis
due to increased acid secretion in your stomach. Other possibility can be hepatiitis.
You should avoid remaining empty stomach for long and also avoid spicy and oily foods.
You should drink atleast 8-10 glasses of water in a day.
Also get your blood investigated for Liver
If the pain persists, get an Ultrasound
of upper abdomen done to rule out any gall bladder
You should get yourself examined clinically.
Treatment can be planned according to the reports of the above mentioned investigations.
I hope this is helpful to you.