I would maybe call your doctor's office and ask them about the one sided pain to be safe. One-sided pain could be kidney related. Back pain is very common with UTI's, though.
To prevent UTI's, I take a concentrated cranberry probiotic every day and drink LOTS of water.
Stay super hydrated, especially when you HAVE an infection. Good for preventing and treating.