fixed inserts when running with mysql offset