Improved `LastInsertId()` example

Existing example wasn't full and this one may be useful for other developers.