'Check if this host has already been added to the database, if not add it in.'

def add_host(self, ip, hostname, domain, os):

    cur = self.conn.cursor()
    cur.execute('SELECT    *    FROM    hosts    WHERE    ip    LIKE    ?', [ip])
    results = cur.fetchall()
    if (not len(results)):
        cur.execute('INSERT    INTO    hosts    (ip,    hostname,    domain,    os)    VALUES    (?,?,?,?)', [ip, hostname, domain, os])
    cur.close()
