 
     #
     # options =
-    #   dbUser          : String # database username
-    #   dbName          : String # database name
     #   dbPass          : String # current users's password
     #   newPassword     : String # new password
     #
 
-    {username,dbUser,dbName,dbPass,newPassword} = options
-
-    #checkIfStarts
-
-    db = new mongo.Db dbName, @server
+    {username,dbUser,newPassword} = options
+
+    db = new mongo.Db dbUser, @server
     db.open (err,db)=>
       db.admin().authenticate @mongoUser, @mongoPass,(err,result)=>
         if err?

          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}"
              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"

  removeDatabase : (options,callback)->



    dbCount = (username,callback) =>
      @fetchDatabaseList username:username,(err,dbsArray)->
        if err
          callback err
        else
          callback null,dbsArray.length
  
