public function bake($configs) {
		if (!is_dir($this->path)) {
			$this->out('<error>' . __d('cake_installer', '%s not found', $this->path) . '</error>');

			return false;
		}

		$filename = $this->path . 'database.php';
		$oldConfigs = [];

		if (file_exists($filename)) {
			config('database');
			$db = new $this->databaseClassName;
			$temp = get_class_vars(get_class($db));

			foreach ($temp as $configName => $info) {
				$oldConfigs[$configName] = $info;
			}
		}

		foreach ($oldConfigs as $oldConfigName => $oldConfig) {
			foreach ($configs as $configName => $configInfo) {
				if ($oldConfigName === $configName) {
					unset($oldConfigs[$oldConfigName]);
				}
			}
		}

		$configs = array_merge($oldConfigs, $configs);
		$out = "<?php\n";
		$out .= "class DATABASE_CONFIG {\n\n";

		foreach ($configs as $name => $config) {
			$out .= "\tpublic \${$name} = [\n";
			foreach ($config as $param => $value) {
				$valueText = $this->_exportParamValue($value, 0);
				$out .= "\t\t'{$param}' => " . $valueText . ",\n";
			}
			$out .= "\t];\n";
		}

		$out .= "}\n";
		$filename = $this->path . 'database.php';

		return $this->createFile($filename, $out);
	}