StringBuilder serviceCreated = new StringBuilder(simple.format(tempNotebook.getServiceCreated()));
NSqlQuery query = new NSqlQuery(db.getConnection());
check = query.prepare("Update SharedNotebook set userid=:userid, notebookGuid=:notebook, "
+ "email=:email, notebookModifiable=:mod, requireLogin=:rlogin, serviceCreated=:serviceCreated, "
+ "shareKey=:shareKey, username=:username, isDirty=:isdirty where id=:id");
query.bindValue(":id", tempNotebook.getId());
query.bindValue(":userid", tempNotebook.getUserId());
query.bindValue(":notebook", tempNotebook.getNotebookGuid());
query.bindValue(":email", tempNotebook.getEmail());
query.bindValue(":mod", tempNotebook.isNotebookModifiable());
query.bindValue(":rlogin", tempNotebook.isRequireLogin());