change last_insert_id to currval
Merge pull request #4 from bourivouh/master

change last_insert_id to currval