changed user db to its own repo