Minor adjustments to debug messages and implmented support for nullable/primary key checks.
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`.