db_tbl function

Get a table from a database