Database session issue tackled