adding toggle for pg triggers, fixed delete statement in reset