Add last_insert_rowid method