in reply to Loader script - Design question

Sounds like you want to use

INSERT INTO table (a,b,c) VALUES (1,2,3) ON DUPLICATE KEY UPDATE c=c+1;
http://dev.mysql.com/doc/refman/5.7/en/insert-on-duplicate.html