sqlalchemy is querying everything fine