Database session plugin extended