title: Kotlin PostgreSQL connection Issue
body: <p>I'm brand new to Kotlin and am using the project at <a href="https://www.varvet.com/blog/android-qr-code-reader-made-easy/" rel="nofollow noreferrer">https://www.varvet.com/blog/android-qr-code-reader-made-easy/</a> which is a simple QR Code reader. However, I am trying to connect to a Postgres instance to store the information found in the QR Code. I am using JetBrains "Exposed" (<a href="https://github.com/JetBrains/Exposed" rel="nofollow noreferrer">https://github.com/JetBrains/Exposed</a>) for my SQL transactions. All of the code works, except when I try to connect to the DB, it fails. I've spent more time than I care to admit on this, so any help would be greatly appreciated! </p>
  
  <pre><code>import android.content.Intent
  import android.os.Bundle
  import android.support.v7.app.AppCompatActivity
  import android.util.Log
  import android.widget.Button
  import android.widget.TextView
  import com.google.android.gms.common.api.CommonStatusCodes
  import com.google.android.gms.vision.barcode.Barcode
  import com.varvet.barcodereadersample.barcode.BarcodeCaptureActivity
  import org.jetbrains.exposed.sql.*
  import org.jetbrains.exposed.sql.transactions.transaction
  import org.jetbrains.exposed.sql.SchemaUtils.create
  import org.jetbrains.exposed.dao.*
  
  object Table : IntIdTable() {
  val ident: Column&lt;String&gt; = varchar("ident", 500)
  }
  
  class tbl(id: EntityID&lt;Int&gt;) : IntEntity(id) {
  companion object : IntEntityClass&lt;tbl&gt;(Table)
  
  var ident by Table.ident
  }
  
  /* 
  ....
  ....
  */
  override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
          if (requestCode == BARCODE_READER_REQUEST_CODE) {
              if (resultCode == CommonStatusCodes.SUCCESS) {
                  if (data != null) {
                      val barcode = data.getParcelableExtra&lt;Barcode&gt;(BarcodeCaptureActivity.BarcodeObject)
                      val p = barcode.cornerPoints
                      mResultTextView.text = barcode.displayValue
                      Database.connect("jdbc:postgresql://IPADDRESS:PORT/DBName", driver = "PostgreSQL", user = "username", password = "password")
                           transaction {
                              create (Table)
                              val neeew = tbl.new {
                                  ident = barcode.rawValue
                              }
                          }
                      } else
  // REST OF CODE...
  </code></pre>