Disable query executing if its already in progress