queries with ngGrid working