Added last insert id function
Merge pull request #40 from diegocastro/master

More contribution!