Fix unique constraints for weight entries