[HUBDB API] Get foreignid value instead of id

Excellent :+1: