use name->entity-base in query-records-by-ids
add more columns to fetched records
use ng-init to along with ng-change

so record table is shown up right after user click 'edit' on contract