Pass the project's root dir to database-patcher.php as an argument because automatic determination is unreliable.
Added SqlUpdateFilterIterator to clean up the code a little.