Add free function for connect and disconnect ops, add special flag to fetch callback when it is the first fetched row.