Improved performance by reducing the number of mysql queries.

This same change will need to be added to the other Items daos, but this took my number of mysql queries down from over 20,000 to about 100.