added foreign key constraint b/w curated page and template