Use last_seen not last_stamp.
Only update last_stamp when state changes.

The last_stamp column is supposed to track when a job's state
changed, or a "still"-notification was last sent.