tdb: detect tdb store of identical records and skip