Database loading doens't work if a unique constraint is violated