Fixed one of the sql injection bugs so dump doesn't break on ' :P