fix table level discovery.

The schema name and table name are made a discovery.