script for etl from temp (intermediate etl) schema to legacy schema