def METHOD_NAME(self, filename, data):
    if filename in ['metadata.json', 'MetaData']:
        self.updateMetadata(json.loads(data))
    elif filename == 'events.json':
        evts = json.loads(data)
        events_array = events.EventLogger.list_to_array(evts)
        self.addEvents(events_array)
    elif filename.startswith('frame'):
        #FIXME - this will not preserve ordering
        frame_num = int(filename[5:10])
        self.appendToTable('PZFImageData', data)