These two lines issue two queries per cart row.