Fixed MySql database throwing CCE fits

There were no break statements in the method that sets data to a
statement. Also the update() method didn't use setToStatement. So that
didn't work right either. All good now.