Update old SQLAlchemy table joining calls manner