public function query_db($pagesize, $useinitialsbar = true) {
        $total = count($this->model->get_logs());
        $this->pagesize($pagesize, $total);
        $this->rawdata = $this->model->get_logs($this->get_page_start(), $this->get_page_size());

        // Set initial bars.
        if ($useinitialsbar) {
            $this->initialbars($total > $pagesize);
        }
    }