updating by writing sql update statements to file and spawning mysql process seems to work (and much faster update)