added code to create a table: trigger if it doesn't exist.