Category::refreshCounts(): Save new counts using upsert()