added query function via dnode