query builder, removing fields and filters