change tmp to live table for personal_poz
add cleanup function