sql script oreder changed