Ok, so I am putting a listing of 25 tuples, with every tuple that contains 5 products, into an sqlite database. Every time I attempt the primary code to create, I recieve "apsw.SQLError: SQLError: near "?": syntax error" Here's the code I am running. Remember that this really is a part of a significantly, much bigger server work for a game title, so a few of the functions is going to be unknown for you.

def writetable(self,blockoffset,matbefore,matafter,name,date):
    self.blocklist.append((blockoffset,matbefore,matafter,name,date))
    if len(self.blocklist) > 25:
        self.memcursor.executemany("INSERT OR REPLACE INTO main (?,?,?,?,?)",self.blocklist)
        blocklist.clear()
        print("Memory Database updated")

In my opinion it ought to be:

self.memcursor.executemany("INSERT OR REPLACE INTO main VALUES (?,?,?,?,?)",self.blocklist)

You most likely didn't remember the VALUES keyword:

  self.memcursor.executemany("INSERT OR REPLACE INTO main VALUES (?,?,?,?,?)",self.blocklist)

Take a look here for that correct syntax.