More efficient database session management.