Added method to queries to retrieve datasource