#31 fix preview mode and user db for session