Simplify transaction temp table creation with trigger