added user db and authentication