updating java strings for sql db