 
     # -------------------------------
     # SECURITY/SANITY FEATURE - NEVER REMOVE
-    #  
+    #
     unless dbUser.substr(0,username.length+1) is username+"_"
       return callback new KodingError "You can only change password of a database user that you own."
     # -------------------------------
-    
+
     # update user set password=PASSWORD("NEW-PASSWORD-HERE") where User='tom'
     sql = "USE mysql; update user set password=PASSWORD('#{newPassword}') where User='#{dbUser}'; flush privileges"
     @mysqlClient.query sql,(err)=>

    #

    {username,dbUser,dbName} = options
    
    dbUser = escape dbUser
    dbName = escape dbName
    
    # -------------------------------
    # SECURITY/SANITY FEATURE - NEVER REMOVE
    #

    # so we can count how many databases this user already has.
    # if user is granted permission to another database
    # we know how many he owns, how many he can access separately.
    # -------------------------------

    sendResult = (err,result)=>
      result.dbType = "mysql"
      result.dbHost = @config.databases.mysql[0].host
      console.log "RES: ", result
      callback null,result # return object {dbName:<>,dbUser:<>,dbPass:<>,completedWithErrors:<>}

    dbCount = (username,callback) =>
      @fetchDatabaseList {username},(err,rows)->
        if err then callback err
        else
          callback null,rows.length

    dbCount username,(err,dbNr)=>
      unless err
        unless dbNr > 4 # 0..4
