Moved setup of local.php to earlier in the script