remove update_sched_maint and make delete_sched_maint work more safely

This was rather hastily written but seems to cover what's needed; it should allow the present and future to change without allowing the past to be altered. Further discussion welcomed.

Fixes #242 (hopefully).