[HUBDB API] Get foreignid value instead of id

As I’m not familar with this, are you able to share the code you have (hiding the table / key information) ? It may help others to have a crack at it too.