rs.next() must be called first