updates to sql ticketing