stupid mistake. (for some reason UPDATE was expecting 2 function args instead of one)