added accesstoken and identity
added user db logic