add apply_sdb function

and remove --set-password.