forgot to encode the version char
handle the case where the passphrase is wrong
handle regen and wrong passphrases
the update of the database works properly
created a separate regen cmd
handle the case where gen is given an unknown cmd
added the support for deletion, works same as find