added ticket.sql