rem: if (!l->isDBOpen()) return 1;
add: if (!l->isDBOpen()) return ERR_NO_EXIST;
context: int checkMemo(){	PilotLocalDatabase *l = new PilotLocalDatabase(SOURCE "/data/MemoDB");	if (!l->isDBOpen()) return 1;	PilotMemoInfo *m = new PilotMemoInfo(l);	m->dump();	QString c = m->category(1);	if (c != CSL1("Business"))	{		kdDebug() << "* Category 1 is not 'Business' but " << c << endl;		return 1;	}	m->setCategory(2,CSL1("Aardvark"));	m->write(l);	c = m->category(2);	if (c != CSL1("Aardvark"))	{		kdDebug() << "* Category 2 is not 'Aardvark' but " << c << endl;		return 1;	}	delete m;	delete l;	return 0;}