private static function database_set_version($package, \Datetime $version) {
		$db = \Skeleton\Database\Database::get();
		$table = Config::$database_table;

		$data = [
			'package' => $package,
			'version' => $version->format('Y-m-d H:i:s'),
		];

		$row = $db->get_row('SELECT * FROM `' . $table . '` WHERE package=?', [ $package ]);
		if ($row === null) {
			$db->insert($table, $data);
		} else {
			$db->update($table, $data, 'package=' . $db->quote($package));
		}
	}