AFAYK one DB can not have a table relation from a second DB
Workaround:
1.
Manually join the 2 DB`s in order to have just one.
You might want to look at inspectdb from Django or sqlacodegen from SQLALchemy. You might want to have your models defined.
2.
Deal with relations manually making raw SQL calls, can be a pain, and also a bit dangerous if you mess things up.
Your DB should not be at the app level. It should run in a separate service and accessed directly or via an API (second requires more work to be done).
In development, there is no problem in doing so, but in production, you do not want to ship your DB with your application.
____________________
Andrei Sima