persistence update to postgresql