INSERT INTO feedgens (at_uri, owner, cid, service_did, content_mode, name, description, description_facets, avatar_cid,
                      created_at)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10)
ON CONFLICT (at_uri) DO UPDATE SET cid=EXCLUDED.cid,
                                   service_did=EXCLUDED.service_did,
                                   content_mode=EXCLUDED.content_mode,
                                   name=EXCLUDED.name,
                                   description=EXCLUDED.description,
                                   description_facets=EXCLUDED.description_facets,
                                   avatar_cid=EXCLUDED.avatar_cid,
                                   indexed_at=NOW()
RETURNING XMAX::text::int