Modified osae.sql to fix Saturday schedule bug

The existing logic increments the dCURDAYOFWEEK but if the day is Saturday it increments to day 8 which is invalid.  Modified logic to wrap around to day 1