Changed 'scan' to retrieve domains from 'hosts' table
prepping for recursion and removing of the domain_table variable