add date to main schedule sql ii