modify sql created to updated