fix the issue of getting last insert id
update doc