S3 proxying & metadata in postgres