One bug fix and one enhancement

Fixed a bug related to new items: daysOld was always defaulting to 30
days because mathematical comparisons with it were always failing;
needed to cast daysOld as an integer before doing mathematical
comparisons with it. Enhancement: changed item status queries to pull
the human-readable location rather than the cryptic location code from
the database.