use more efficient DB query, eliminate useless instance variable