validation checks for duplicate piece
error msg for duplicate piece
rake task to migrate data