Moved SQL statements to be executed by psql to their own .sql file, to bypass 'function int4out() does not exist' error, possibly due to quoting.