Black hole mass and velocity dispersion of narrow line region in active galactic nuclei and narrow line Seyfert 1 galaxies