update to the sql