PostgreSQL support
MySQL bugs, streaming_read_key null + other nulls

Upgraded to latest version of lib because of data incompatibility
streaming_read_key was never written yet was NOT NULL
set active_tab and active_cursor to NULL as no value was specified for them
PostgreSQL fix to include ID in ownership

The scripts used to insert rows into PostgreSQL assume
that an ID column exists for each table.  As there is 
no harm in adding this, instead of hacking the insert 
SQL scripts, this column has been added
Revert SQL changes required for 4febfe04

active_cursor and active_tab were required fields yet
no value is assigned in the sql templates.
I originally fixed this in 4febfe04f9c28ba584cdb08e9519277c80d5dff4
by allowing these fields to be NULL like the are for
Postgre & SQLite, however, this has implications for a very 
large database.  So instead, this commit assigns defaults
values to these unused columns