Session persistence with database driver