tags are written to file when the database is and imported from the correct file when the database is imported