update sql bash script and sql