select_personsdata_uid() more robust now, seems to work in
several chains.