Extracted ResultSet Helper functions