Integration of SQLAlchemy with transaction management