                 itemClass     : KDSelectBox 
                 type          : "select"
                 name          : "type"
-                defaultValue  : "JDatabaseMySql"
+                defaultValue  : "mysql"
                 selectOptions : [
-                  { title : "MySql",    value : "JDatabaseMySql" }
-                  { title : "Mongo",    value : "JDatabaseMongo" }
+                  { title : "MySql",    value : "mysql" }
+                  { title : "Mongo",    value : "mongo" }
                   # { title : "PostGre",  value : "JDatabasePostGre" }
                   # { title : "CouchDB",  value : "JDatabaseCouchDb" }
                 ]

class AccountDatabaseListItem extends KDListItemView
  constructor:(options = {},data)->

    options.tagName = "li"
    
    data.type   or= "mysql"
    data.color  or= "yellow"
    data.title  or= "MySql DB"
    data.dbHost or= "mysql0.db.koding.com"

    super options,data
    

  updateDatabase:(listItem, formData)->

    data = listItem.getData()
    log "Requested DB Type", data
    
    @talkToKite
      toDo          : @commands[data.type].update
      withArgs      :
        dbUser      : data.dbUser
        newPassword : formData.password
