updated temporary_tables script