Now properly retrieving categories/items from database and displaying them