added the calling of query script.