[SOLVED] Setting db & field dynamically

If you save a backup of your app, as a .yaml file, you’ll find it contains a line
exported_table_schema:
Your table definitions immediately follow that line.

A yaml parser will make short work of finding and accessing the table definitions.

Note: this is undocumented territory, subject to change without notice.