add date to main schedule sql