Last inserted id and row count.

Moved the `lastInsertId` to a new section and implemented support for retrieval
of the number of rows affected by the last query, `rowCount`.