title: Removing optionals from this code in swift
body: <p>The below code works perfectly, but the values of address.text and phone.text outputs as optional. Tried to unwrap it by placing ! (address.text = results.stringForColumn("address")!
              phone.text = results.stringForColumn("phone")!), but it didnt help.</p>
  
  <pre><code>@IBAction func findContact(sender: AnyObject) {
      let contactDB = FMDatabase(path: databasePath as String)
  
      if contactDB.open() {
          let querySQL = "SELECT address, phone FROM CONTACTS WHERE name = '\(name.text)'"
  
          if let results:FMResultSet = contactDB.executeQuery(querySQL,
              withArgumentsInArray: nil) {
  
                  if results.next() == true {
                      address.text = results.stringForColumn("address")
                      phone.text = results.stringForColumn("phone")
                      status.text = "Record Found"
                  } else {
                      status.text = "Record not found"
                      address.text = ""
                      phone.text = ""
                  }
                  contactDB.close()
          } else {
              print("Error: \(contactDB.lastErrorMessage())")
          }
      }
  }
  </code></pre>
  
  <p>Any suggestions ??</p>