The pain you are describing seems to be related to an ulcer disease. Normally ulcers have to be confirmed by an endoscopy. But your complaints seem like classical ulcer disease. Continue the tablets for atleast 2 weeks . Even then symptoms don't reduce. Go for an endoscopy.
Next Steps
Avoid oily and spicy food.
Timely eating habits.
Have a time interval of at least 2-3 hours between eating and sleeping
Lifestyle modifications - yoga, mediation, walking/jogging.