                   users_dbs = []
                   dbInfo = []
                   for db in result.documents[0].databases
-                     users_dbs.push db.name if db.name.match username
+                    users_dbs.push db.name if db.name.match username
                   queue = []
                   users_dbs.forEach (users_db, index)=>
                     queue.push =>
-                      @getDbUsers users_db,(usersArray)=>
-                        dbInfo.push { dbName: users_db, dbUser: usersArray }
+                      @getDbUsers users_db, (usersArray)=>
+                        if users_db in usersArray
+                          dbInfo.push { dbName: users_db, dbUser: users_db, dbType: 'mongo', dbHost:@mongoHost }
                         queue.next()
                   queue.push ->
                     callback null, dbInfo


    #
    # 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
    db.open (err,db)=>
      db.admin().authenticate @mongoUser, @mongoPass,(err,result)=>
        if err?


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