added persistance table for downloads
I think the download persistance is almost there, just some testing to finish off
compilation failure fixed