Final Q5 ETL code