/**
  * Correct references in configuration
  */
 private function correctConfigReferences()
 {
     if (isset($_POST['overwrite_config'])) {
         $ConfigValues = Configuration\Handle::tableHandles();
         foreach ($ConfigValues as $key => $table) {
             $table = 'runalyze_' . $table;
             if (isset($this->ReplaceIDs[$table])) {
                 $OldValue = $this->DB->query('SELECT `value` FROM `' . PREFIX . 'conf` WHERE `key`="' . $key . '" LIMIT 1')->fetchColumn();
                 $NewValue = $this->correctID($table, $OldValue);
                 if ($NewValue != 0) {
                     $this->DB->updateWhere('conf', '`key`="' . $key . '"', 'value', $NewValue);
                 }
             }
         }
     }
 }