Added support for retrieving Db entries as a Tree