The biofilms and attachment thing is the same as the microbes in the urethra thing for women and NSU/bladder infections. Simple sugars fill the molecular holes in the lectins and surface liners where the bugs get their footholds.
It is beleived that the fructose in cranberry helps the women's problems, but also beleived that mannose is better, so all simple sugars probably do this job and therefore allow bugs like E.coli and Kp to be flushed away by urine or by food, depending on where they are...