def METHOD_NAME(self):
    if self.fields[0][0] == 'size':
        formatted_data = self.get_db_size_data()
    else:
        values = self.execute()
        formatted_data = self.format_data(values)
    context = {
        "data": formatted_data,
        "chart_name": self.fields[0][1]['label'],
        "chart_type": self.fields[0][1]['type'],
    }
    return context