Sorry!
It appears that the database is down or otherwise being unhelpful. It returned the error message
could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432?