Replace staticly with statically because spelling. Also: If a site is marked as deleted, don't write the update script.