when triggering an alert copy the whole alert to the log, renamed table alert_log to alert_triggered, added an id to alert_triggered to identify the alert when marking as sent