[XS] Change in onomondo-eim[master]: mnesia_db_work: use distinct logic when fetching from rest table