Implementation of scheduling methods
fix inversion of set/unset
re-use db object
call schedule unschedule on alarm modification
some fixes,
alarmId is long