Added primary key to url_relationship.
Fixed rake task to create url_relationships correctly.