Mysql::Error: Duplicate entry

sounds like you've got a unique index somewhere.

Fred