INSERT INTO profiles (did, cid, avatar_cid, banner_cid, display_name, description, pinned_uri, pinned_cid,
                      joined_sp_uri, joined_sp_cid, created_at)
VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11)
ON CONFLICT (did) DO UPDATE SET cid=EXCLUDED.cid,
                                avatar_cid=EXCLUDED.avatar_cid,
                                banner_cid=EXCLUDED.banner_cid,
                                display_name=EXCLUDED.display_name,
                                description=EXCLUDED.description,
                                pinned_uri=EXCLUDED.pinned_uri,
                                pinned_cid=EXCLUDED.pinned_cid,
                                joined_sp_uri=EXCLUDED.joined_sp_uri,
                                joined_sp_cid=EXCLUDED.joined_sp_cid,
                                indexed_at=NOW()