check if record already in table 'hosts'