David
I dont think thats a port 80 problem. I think it can't connect to your Postgres server. Probably becuase the user your trying to connect with doesn't exist on Postgres. ( NsPgOpenDb(postgres): Could not connect to localhost::mathing: FATAL: IDENT authentication failed for user "mathing").
Also check that you have tcp sockets enabled in the postgresql.conf file and that you have permission in the pg_hba.conf file.
- Steve