Added alarms table and db helpers