userFunctions SQL update