Fix for SQLite and deleting schedules