Hello dear
Warm  welcome to Healthcaremagic.com
I have evaluated your query in details  .
*  This is the side effect of drugs consumed on empty stomach with altered    
gut flora mechanics via coffee and beer .
*  Guidelines for better outcome from this issue  :
Consume plenty of liquids  in form of boiled water , lemon juice , coconut water , home made juices , organic  tea , coffee , butter  milk  etc .
Prefer soft , light  , bland , vegan  diet  with fresh  curd  preferably .
Avoid  all types of  oily , spicy , non veg , hot beverages , junk foods , dairy fat , milk  till recovery .
Intake of PPI  ( as 
omeprazole ) , antibiotics  ( with 
metronidazole on pack ) 
Probiotics with lacto bacillus    helps   to  give  faster  recovery .
Hope this  will help  to clear your doubt   .
Wishing you fine recovery .
Regards .