file upload to s3 working, db insert failing