Edit Schedule query