Mod: changed semantics of note addition for invalid arguments

-protect DB agains invalid arguments
-minor comments, reordering in CaseServlet