save relationship data to file