as_csv_files function

Generate csv files with fact and dimension tables