Update exisiting schedule instead of inserting every time. Fixes issue #3