deal with DictCursor
This is not Perl. use True/False instead of None/1