PHP scripts for manipulation of controlled vocabularies