My dr mentioned ulcers are related to bacterial infections so are now treated with antibiotics. But if you have a high amount of bad bacteria in your intestines a good probiotic like florastor and change of diet should be the first thing you try before surgery. Do an elimination diet, cutting everything, like dairy and gluten as Michael said.
http://youtu.be/J4DRUdtAWqM
http://youtu.be/ZAA31-vZNR8
I hope these help! Feel better