refactored old-style ddl triggers with anti-join pattern