Experimental functionnal code for Update Queries