Fixed SQL install script for PostgreSQL
Fixed tinyint for PostgreSQL in a more generic way
Merge pull request #1232 from GPCsolutions/pgsql-installer

Fixed SQL install script for PostgreSQL