Added alarmWrite to database