upload to S3 from command line is working. fixing errors of serialization of the datastructure to be used to populate the DB