added code to look at what's in the db for alarms

and debugging output