update by sq