Store tags

Support the import of tags and the storage of them in MySQL.