save unique_db to disk