Update sql script