update scan.php

fix for scan not adding ips to database when started after entering a
new network.