SQLAlchemy serialization + Config/Session changes