session state in database for demo mode