Use Sequel::UniqueConstraintViolation