"from "+dbName+" where isDirty=true and local=false and linked=false");
if (!check)
logger.log(logger.EXTREME, dbName+" SQL retrieve has failed.");
while (query.next()) {
tempNotebook = new Notebook();
tempNotebook.setGuid(query.valueString(0));
int sequence = new Integer(query.valueString(1)).intValue();
tempNotebook.setUpdateSequenceNum(sequence);
tempNotebook.setName(query.valueString(2));
DateFormat indfm = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S");