removed delete terms in 2 permission because of pdo excetion