$cfg will be used before setup on sqlvalidator.lib.php