added table existence check to import query parser