-- sql with check for closed tickets
   before adding to sql verify that intranet-helpdesk is installed