During my update from Civi 4.2 to 4.7 I let it fill in database information that was not correct it connected to the cms database and not the Civi database from the previous install. Is there a file I can edit to have it connect to the old database?
You should edit the civicrm.settings.php file. The location of this file depends on your content management system.
You may find this related post helpful: How do I change the CiviCRM Database name