update sql statements