}
// Save a tag
public void addSavedSearch(SavedSearch search, boolean isDirty) {
boolean check;
NSqlQuery query = new NSqlQuery(db.getConnection());
check = query.prepare("Insert Into SavedSearch (guid, query, sequence, format, name, isDirty)"
+" Values(:guid, :query, :sequence, :format, :name, :isDirty)");
if (!check) {
logger.log(logger.EXTREME, "Search SQL insert prepare has failed.");
logger.log(logger.EXTREME, query.lastError().toString());
}