adjusting to new query_dict format
added example table functionality