switching over to database sessions