Deal better with unique constraints
They cause hard to read technical errors at the moment. We should probably check for duplicates before trying to insert/update, and use functional errors
They cause hard to read technical errors at the moment. We should probably check for duplicates before trying to insert/update, and use functional errors