added method to dump all data to csv format