set alerted=1 on SQL because we log when we alert and not in advance or w/e