Adds systematic mapping of psql errors to nosql exceptions.
Adds support for insert and download operations using postgresql.
Create spatial index on table create.
Fixes window query syntax.