                   callback? error
                 else
                   users_dbs = []
+                  dbInfo = []
                   for db in result.documents[0].databases
                      users_dbs.push db.name if db.name.match username
-                  
-                  dbInfo = []
-                  l = users_dbs.length
-                  for users_db in users_dbs
-                    l--
-                    @getDbUsers users_db,(usersArray)=>
-                      dbInfo.push { dbName: users_db, dbUser: usersArray }
-                      if l is 0
-                        callback dbInfo
-
-
+                  queue = []
+                  users_dbs.forEach (users_db, index)=>
+                    queue.push =>
+                      @getDbUsers users_db,(usersArray)=>
+                        log.debug "x",users_db,index,usersArray
+                        dbInfo.push { dbName: users_db, dbUser: usersArray }
+                        queue.next()
+                  queue.push ->
+                    log.debug 'info FINALLY', dbInfo
+                    callback null, dbInfo
+                  daisy queue
           
 
   createDatabase : (options,callback)->

    id.substr 0, length

  getDbUsers : (dbName,callback)->
    

    db = new mongo.Db dbName, @server, native_parser: false
    db.open (err,db)=>

        log.error error = "[ERROR] can't open database #{dbName}: #{err}"
      else
        db.admin().authenticate @mongoUser, @mongoPass,(err,result)=>
          log.error err if err
          db.collection "system.users",(err,collection)=>
            log.error err if err
            collection.find({},{fields:user:1}).toArray (err,items)->
              log.error err if err
              usernames = []
              for user in items
                usernames.push user.user
              console.log "miki",usernames
              callback usernames

  fetchDatabaseList :(options, callback)->
    #
