foreach ($this->db->fetchAll($query, $params) as $row) {
            $return[$row['date']] = $row['num'];
        }