include attach.php here (boot.php) instead of each file that uses it. Eventually this needs to move to an autoloader.