GetRelatedAccounts return map<key, value> to avoid accessing database multiple times