improved db detail page header content

include entity name, type and id. implemented using a sub-template.