Chemical evolution of Seyfert galaxies