insert into mysql database with multi-threads