Fixed SQL install script for PostgreSQL