 	public func delete(_ id: Any) throws {
 		let (idname, _) = firstAsKey()
 		do {
-			try exec(deleteSQL(self.table(), idName: idname), params: [String(describing: id)])
+			try exec(deleteSQL(self.table(), idName: idname.lowercased()), params: [String(describing: id)])
 		} catch {
 			LogFile.error("Error: \(error)", logFile: "./StORMlog.txt")
 			self.error = StORMError.error("\(error)")

		var set = [String]()
		for i in 0..<data.count {
			paramsString.append("\(data[i].1)")
			set.append("\(data[i].0) = $\(i+1)")
		}

		do {

	public func delete() throws {
		let (idname, idval) = firstAsKey()
		do {
			try exec(deleteSQL(self.table(), idName: idname.lowercased()), params: [String(describing: idval)])
		} catch {
			LogFile.error("Error: \(error)", logFile: "./StORMlog.txt")
			self.error = StORMError.error("\(error)")
