created foreign key registration_visitorpath
refactored visitorpath_path for Drupal 7.x