postgres connection attempt and s3