def _setup_tables(metadata, tables):
    """Given an SQLAlchemy Metadata for the current engine, set up
        Tables for the database structure, saving them to the dict
        'tables', keyed by table name.
        """
