Fixed potencial cascading action problems in Ticket database entity