split mysql inserts on large datasets

Patch from Stefan Leuchsenring