A function or procedure that converts a proper CSV file to glossary data and stores that in the proper tables.
A CSV file to import may contain any field, but only current glossary items are recognised. Other files are ignored.
The import facility creates new categories found in the file.
It uses SQL for transactions and will roll back when errors are found. If your mySql implementation does not support transactions, all will be fine and no roll back is executed. Author and moderator are checked for existence, and, if not found, will be replaced by resp. anonymous and you're username.