add query methods to datasource