- Add proper import of sqlalchemy.text in session.py
- Update raw SQL query execution to use text() function
- Enhance error messages with specific guidance for common SQLAlchemy errors
- Add more detailed logging of error types for easier debugging
- Ensure compatibility with newer SQLAlchemy versions