Fixed $this->db call