Removed the majority of inserts to see if that's causing mysql to fail