update fields in sql statements