public function __construct(\PDO $dbh, $config_table = 'config')
{
$this->dbh = $dbh;
if (func_num_args() > 1) {
$this->config_table = $config_table;
}
$this->config = array();
$query = $this->dbh->query("SELECT * FROM {$this->config_table}");
$this->config = $query->fetchAll(\PDO::FETCH_KEY_PAIR);
$this->setForgottenDefaults();
// Danger foreseen is half avoided.
}