'Sets IP information in colname_ipdata.'

def set_data(self, addr, force=False):

    if ((not force) and (self.get_data(addr) is not None)):
        return
    for data in [self.globaldb.data.country_byip(addr), self.globaldb.data.as_byip(addr), self.globaldb.data.location_byip(addr)]:
        if (data is not None):
            self.db[self.colname_ipdata].update({'addr': addr}, {'$set': data}, upsert=True)
