Moves session token to the database (away from sessionStorage).