update ticket tables