change tmp to live table for personal_pbv
add cleanup function