Change group to upsert

Use upsert to prevent multiple scans for the same game, instead of group
by.