Add a consistency check on events which we read from the database.