store the s3 information to db