SimpleDateFormat simple = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.S");
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());