         let event = sdkClient.addEvent(["message": "Guten Morgen!"], table: table)
         sdkClient.uploadEvents()
         if event != nil {
-            let result = try! IntegrationTests.api.stubbornQuery("select message from \(table) limit 1", database: "huy")
+            let result = try! IntegrationTests.api.stubbornQuery("select message from \(table) limit 1", database: IntegrationTests.TargetDatabase)
             XCTAssert(result[0][0] as! String == "Guten Morgen!")
         } else {
             XCTFail("Could not create event!")


        let sessionRecords = try! IntegrationTests.api.stubbornQuery(
            "select td_session_event, td_session_id from \(sessionTable)",
            database: IntegrationTests.targetDatabase)
        let sessionEvents: Set = [sessionRecords[0][0] as! String, sessionRecords[1][0] as! String]
        XCTAssertTrue(sessionEvents.contains("start"))
        XCTAssertTrue(sessionEvents.contains("end"))


        let eventRecords = try! IntegrationTests.api.stubbornQuery(
            "select td_session_id, event from \(eventTable)",
            database: IntegrationTests.TargetDatabase)
        for event in eventRecords {
            if (event[1] as! String == "in_session_event") {
                XCTAssertEqual(event[0] as? String, sessionId)
