Added qry_result.clear after each exec