If Connection refused. then create screen and show message server is down please try later.

instead of this showing this error :- SQLSTATE[08006] [7] connection to server at "10.10.3.50", port 5432 failed: Connection refused Is the server running on that host and accepting TCP/IP connections? (SQL: select ST_AsGeoJSON(ST_Transform(way,4326)) as geoJSON_data, name, osm_id from planet_osm_point where name != '')