print status when the specific query is excuted