crud api persists users to mongodb