If you're using an active database like postgresql or interbase, you can program a before trigger that will fire on each insert and check to see if the record being inserted is on a list of records not to be inserted (keep that list in a secondary table, like pig suggested).
If you're using MySQL you'll have to program it into your application logic.