                 @emit "DeleteDatabaseSubmitted", listItem
 
         fields  : fields
-    
+
     modal = @modal = new KDModalViewWithForms formSchema
-          
+
   # addDatabase:(f)=>
 
 
-  
+
     # jr = new bongo.api[f.type]
     #   title : f.title   ? "My Dev DB #{(Date.now()+"").substr(-2)}"
     #   host  : f.host    ? "localhost"

      #       match         : @modal.modalTabs.forms.fields['New Password']
      #     messages        :
      #       match         : "Passwords do not match!"
        
    if type is "external"                                     
      formSchema.tabs.forms["Link External"] =
        buttons :
          "Link It!"      :

                  """

  loadItems:(callback)->

    @_loaderCount = 2
    @showLazyLoader no

    hideLoaderWhenFinished = =>
      @_loaderCount--
      @hideLazyLoader() if @_loaderCount is 0

    for dbtype in ['mysql', 'mongo']
      @talkToKite
        toDo      : @commands[dbtype].fetch
        withArgs  :
          dbUser  : KD.whoami().profile.nickname
      , (err, response)=>
        if err then warn err
        else
          @instantiateListItems response
          callback?()
          hideLoaderWhenFinished()

  deleteDatabase:(listItem)->
    data     = listItem.getData()
