Added drupal_write_record and drupal_get_destination to Common.php