corrections for database session plugin