Added class.Base.php
Extend every class where you want to use database with BASE and then call parent::_contruct() to gain access to $this->db