fixed bug where alarm messages where not getting logged to the db