added triggers to sql script