a script to convert ior results into mysql inserts