optimize the user db manager