Begin incorporating buildIdArray function for DRYer code
Begin incorporating buildIdArray function for DRYer code
Add function to associate tags with item IDs
Simplify code due to new functions
Simplify item query
Conditionally associate tag arrays with items