Create CSV files from DB tables