udpate sql script