update vector tutorial: update functions and remove postgresql linked table