make sure that the querycache class is being used by the sync class and also for inserting the queries themselfs into it. Atm this class isn't used yet if I remember correctly
Member Ticket ($ticket_id, $newStatus, $newPriority, $author)
break this function up into a updateStatus (already exists) and updatePriority function and perhaps write a wrapper function for the combo.