Achievement claiming process more robust against manual database changes.