Change localStorage to MongoDB on AWS