Only save passphrase if its not empty. Save db for future use