put create trigger on one line.
Fixing $groups to $tables.