retrieving unique objects from DB