Add a method to fetch data in one query