Why not using "insert or ignore into" sql execute on each? Would be worth a comparison.