switched form dynamodb to mongodb for storing users