remove isset($this->db) test in _set_database()