           db.addUser dbUser,newPassword,(err,result)->
             db.authenticate dbUser,newPassword,(err,result)->
               if err?
-                log.error "[ERROR] can't change password for user #{dbUser} in databse #{dbName}: #{err}"
-                callback? "[ERROR] can't change password for user #{dbUser} in databse #{dbName}: #{err}"
+                log.error "[ERROR] can't change password for user #{dbUser} in databse #{dbUser}: #{err}"
+                callback? "[ERROR] can't change password for user #{dbUser} in databse #{dbUser}: #{err}"
               else
-                log.info "[OK] password for user #{dbUser} in database #{dbName} has been changed"
-                callback? null,"[OK] password for user #{dbUser} in database #{dbName} has been changed"
+                log.info "[OK] password for user #{dbUser} in database #{dbUser} has been changed"
+                callback? null,"[OK] password for user #{dbUser} in database #{dbUser} has been changed"
 
   removeDatabase : (options,callback)->
 

          callback? "[ERROR] can't authenticate user #{dbUser} in #{dbName} with current password: #{err}"
        else
          db.dropDatabase (err,result)->
            if err?
              log.error "[ERROR] can't drop database #{dbName}"
              callback?  "[ERROR] can't drop database #{dbName}"

    #   username : koding user

    {username} = options
    username = new RegExp '^'+username+'_'

    db = new mongo.Db 'admin', @server, native_parser: false

