Findbugs fixes for examples - uses StringBuilder instead of + in loops, and closes SQL resources properly.