db changes for s3 upload