'Write the points to the CouchDB server.'

def export(self, name, columns, points):

    logger.debug('Export    {}    stats    to    CouchDB'.format(name))
    data = dict(zip(columns, points))
    data['type'] = name
    data['time'] = couchdb.mapping.DateTimeField()._to_json(datetime.now())
    try:
        self.client[self.db].save(data)
    except Exception as e:
        logger.error('Cannot    export    {}    stats    to    CouchDB    ({})'.format(name, e))
