added custom query in TicketEntity, linked to local mysql