Added and removed calls to $this->db->connect() after changes to the base db classes

Also improved documentation