Use filter instead of filter_by in query_updates to fix a bug when joins are involved.

Prior to this change, performing a query that involved joining other models
first would cause SQLAlchemy to explode with errors like: InvalidRequestError:
Entity '<class 'bodhi.models.models.Package'>' has no property 'type'.