changes for alarmmanager and db