Actually get ticket data from the database