private static Category CategoryObject(ResultSet rs) {
            Category newCategory = null;
        try {
            newCategory = new Category(rs.getInt(rs.getMetaData().getColumnName(1)),
                                     rs.getString(rs.getMetaData().getColumnName(2)));    
        } catch (SQLException e) {
            Error_Frame.Error(e.toString());
        }
        return newCategory;
    }