added some code to export db to flat files
Move pgp key to local storage