And then you created a loop yourself with a conditional in it for when you reached the last object? Never used sqlite3 much with python, only to get some stats from my nostr-rs-relay.