I've found why the function is called 28 time, since I user search({}, {…}) and I have 28 records in my database….
Yet,that means I have no way to call a function just once without specifying a search that returns just one result row.
So , switching back to dbh->do…
Rolf