setNotecomplete handles invalid noteid
addslashes for notes