retrieve data from s3 and load to a local database then generate report