added database session handler