refs #289 Functions to get term related data from db