added 'flag' field

and commented out the non-functional checkbox query