Fixed db.schedule.insert
Fixed db.schedule.insert

Callbacks do not work within for loops.  Had to add a function inside
the loop to force a function scope to the callbacks.

Iuykza/Shiftswap,Iuykza/Shiftswap