pg_connect(): Unable to connect to PostgreSQL server: connection to server at "10.0.99.149", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections?