To Update the new password in the database

i have successfully done the Firebase auth and link the Firebase auth with Firebase database. Now I'm working on the forgot screen I'm getting the mail regarding the password change. It is successfully changing the password. But I want to show that updated password in the Firebase database.

   firebase.database().ref('sevenup-a1db1/'+ 
    firebase.auth().currentUser.uid).update({

                password,
            }) 

I have done this but I'm getting the following: error Reference. update failed:First argument conatins Undefind in property 'sevenup-a1db1/-hwebfkhfyegfgyu23f.password'

    onResetPasswordPress = (email,password) => {
    firebase.auth().sendPasswordResetEmail(this.state.email)
    .then (() => {
    firebase.database().ref('sevenup-a1db1/'+ 
     firebase.auth().currentUser.uid).update({
      password,
      })

        },  

I want to update the Password in firebase database