Use SQLAlchemy session context manager for managing sessions