database.local.php replace script.
Had wrong location for database.local.php path.