adding a query for media