hopefully got the pgsql file correct