Move token from session to DB