added fetch method in queries