async def set_nodes(self, node_list) -> None:
    for (node_id, peer_info) in node_list:
        cursor = (await self.db.execute('INSERT OR REPLACE INTO peer_nodes VALUES(?, ?)', (node_id, peer_info.to_string())))
        (await cursor.close())
    (await self.db.commit())
async def set_nodes(self, node_list) -> None:
    for (node_id, peer_info) in node_list:
        cursor = (await self.db.execute('INSERT OR REPLACE INTO peer_nodes VALUES(?, ?)', (node_id, peer_info.to_string())))
        (await cursor.close())
    (await self.db.commit())