Fixed issue #117 - Undefined property $this->db
Merge pull request #208 from megadix/fix_issue_117

Fixed issue #117 - Undefined property $this->db