how to resolve could not connect to server in postgresql