supporting ResultSet.last and ResultSet.getRow