Changed code from redis to mongodb. Commented lots of code... Need to refactor