remove if statment on hec query as the webservice parses None properly
helio/hec change if for while to avoid query for no table, still no perfect