fixed navbar bug, added $this->db->mongo_instance() function to Mongodb library.