changed functionality of show tables query (requires schema now)