Persist session in mongodb