Idempotent mark-as-read DB ops. (#460)