Simplified the usage of ResultSet