don't insert scanned document that is already in the table