lib/sqlite3: Added last inserted rowid function

Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>
Opportunity WIP