Migrating from container to os: energy data missing

I’m trying to migrate from HA container to OS by importing a container backup. More recent data of the energy panel seems to be corrupted, I read in other posts that the database file was not closed prior to the backup, but that was fixed? I’m not sure if I am doing anything wrong, or if there are still issues. Should I just copy over the database after shutting down both instances?