// check for write
if (row.has("level")) {
int level = row.getInt("level");
String who = row.getStr("who"); // be nice to have user fallback
HVal val = row.get("val", false);
HNum dur = (HNum) row.get("duration", false);
db.pointWrite(id, level, val, who, dur);
}
writeGrid(writer, db.pointWriteArray(id));