Fix issue where query.update from SQLAlchemy doesn't limit the update

This results in a whole-table update. Gross.