created purge_analysis_data_for_delivery.sql