Persist cookies to mongodb