More model improvements, mostly getting rid of the string ticketid.