[pwm] Added -d and -k option to the pwm command

-d specifies the database directory
-k specifies a gpg key id