async def set_new_table(self, entries) -> None:
    for (node_id, bucket) in entries:
        cursor = (await self.db.execute('INSERT OR REPLACE INTO peer_new_table VALUES(?, ?)', (node_id, bucket)))
        (await cursor.close())
    (await self.db.commit())
async def set_new_table(self, entries) -> None:
    for (node_id, bucket) in entries:
        cursor = (await self.db.execute('INSERT OR REPLACE INTO peer_new_table VALUES(?, ?)', (node_id, bucket)))
        (await cursor.close())
    (await self.db.commit())