updating sql shell script