check ticket_time table exists