Magnetic and superconducting properties of niobium oxides