added function to fetch ancestor information for a given row id