add myslq_insert_id
code optimization