hi, yes indeed the possibility of bacterial infection in your digestive system is very likely, cheers.
Wonder if you might possibly have some gallbladder problems as that can certainly cause GI upset in different ways, although at its worst bile is a natural laxative so you would sometimes get diarrhea, although I never did when I had mine.
If your pain is more right-sided than left, then I would ask to perhaps see if you could get an ultrasound at the very least to determine whether it's functioning properly.