final workings on get pgpass and connect