add query filter to queries

adds a nicer interface around query filters. 

needs an forthcoming update to dynalite to be able to test