new ticket system (client,device,ticket and realtion table for those 3, some bufixes and insignificant changes