Fix constants, output tickets from database, and implement status/priority names for Ticket objects