Use S3 blobs as well as traditional save to sql.

I can't afford S3 cost.
Added database configuration.