Code for the Database Discovery Drupal feature