moved persistence to mongo, added session persistence