process two csv files and add data into mnesia with dup check.