Given that collecting different tables and the sql dump is expensive in terms on time, but we need the complete sql dump for verification purposes in case of any problem (it is the complete state of the database), evaluate if storing only the sql dump and the complete schema and then start the transformation from this (maybe converting it to csv and then proceed as it is now)