Improve speed during inserting data to DB.