modify accordingly to the change of model which allows last_checked alarm timestamp to be null