added snoozing variable for snooze awareness

also begain some database cleanup and updateAlarm()