use sqlalchemy &, fix precedence