Auth0 Custom Database

the extra data is about 5 tables with each table having an average of 4 rows. Do I query the API on auth0s side or on my backend? which that’s what I’m doing on my backend but it’s not retrieving the correct id.