Adding triggers, table defs