My Main Activity is like this
private lateinit var database:FirebaseDatabase private lateinit var reference: DatabaseReference
override fun onCreate(sa