Either that or the "ON CONFLICT DO NOTHING" flavor of [upsert](https://www.sqlite.org/lang_UPSERT.html).