         self.testSession = testSession
         
         do {
-            
             dbQueue = try DatabaseQueue(path: try getRelayDirectory() + identifier + ".sqlite")
             
             try dbQueue?.inDatabase { db in

        }
    }
    
    func flushLogs() {
        do {
            try dbQueue?.inDatabase({ db in
                let logRecords = try LogRecord.filter(Column("upload_task_id") == nil).fetchAll(db)

        }
    }
    
    /// When a log succeeds or fails to upload, `processLogUploadTask` is called to do post processing.
    ///
    /// - Parameter task: The completed task.
    ///
    private func processLogUploadTask(task: URLSessionUploadTask) {
        do {
            try dbQueue?.inDatabase { db in
                guard let record = try LogRecord.filter(Column("upload_task_id") == task.taskIdentifier).fetchOne(db) else { return  }
