update sql functions on deploy