working on switching in a mongo database for the redis database