put in abstract getQuery for fetchable