         db = try Connection()
         try initializeTables()
         if let v = version {
-            try db.run(sysTable.insert(or: .replace,
-                                       idColumn <- 0,
-                                       versionColumn <- Int64(v)
-            ))
+            try db.run(sysTable.update(versionColumn <- Int64(v)))
         }
     }
     

// swiftlint:disable:next type_body_length
open class SQLiteQuadStore: Sequence, MutableQuadStoreProtocol {
    typealias TermID = Int64
    let sysTable = SQLite.Table("kineo_sys")
    let versionColumn = Expression<Int64>("version")

    let quadsTable = SQLite.Table("quads")
    let subjColumn = Expression<Int64>("subject")


        try db.run(sysTable.insert(or: .replace,
            idColumn <- 0,
            schemaVersionColumn <- schemaVersion,
            versionColumn <- 0
        ))

