Cross-DB Query Script based on SQLAlchemy