implement cancelAll method
Check DB before executing an alarm
fix sql typo
check DB on activity resume
code cleaning
logging
updated test cases