Update, sp and scalar working, need to test table func