added query as service