Flatten and generate csv files from for Yelp dataset