Fixed Drupal database settings.

With the change back to using CIVICRM_DSN, the Drupal database settings need
to be changed to work off of that as well.
Need Drupal in order for GenCode.php to work.

GenCode.php pulls a civicrm.config.php template file from the drupal
directory, so we need to pull that in for the tests to run.