Separate the ResultSet logic into a separate class so that it can be
integrated with other systems.