added queries for querying the local schema