Thanks for writing your query.
After reading your post, it seems that you might be suffering from increased gastritis
as a result of taking painkillers like Ibuprofen
You can take antacid like Omeprazole
40 mg for relief from your symptoms like indigestion
Following precautions will be helpful :-
1. Avoid spicy/oily foods.
2. Do not miss a meal.
3. Avoid emotional/mental stress.
4. Avoid smoking/alcohol, if any.
5. Do not self medicate, especially with painkillers and steroids
Always take an antacid with the painkillers.
6. Drink at least 8-10 glasses of water daily.
You should get your investigated for
1. Blood sugar.
2. Urine examination.
This will help to know the cause of frequent micturition.
I hope this is helpful to you.