update sql bash script