Postgres connect to server. Pgadmin connect to asterisk database.