Finally fixed viewTicket() so that it will correctly display a ticket addition in live mode
Also commented database.java