added foreign keys in pv_pn, pv_pl and pv_fil