Extract SOME old data from "home-assistant_v2.db" and export to new home-assistant_v2.db file

It is a SQLLite DB. You should be able to write a sql select to get the data out and back into a new one.
Maybe this can help finding the data. (I have not used it)