I've got an app with a front end and back end DB.

When the front end starts, I want it to automatically link to all the tables in the back end database thats in the same directory as the front end, or any directory that I specify. Is there any easy way to do this in code which doesn't require me to know all the back end tables.