Format SQL update better