Naming: Name cannot be same as DocType if not single
Minor fixes in db_query and base_document
Changed how defaults are set when creating new documents
Fixed _fix_numeric_types
Fixed test case
Merge pull request #698 from anandpdoshi/anand-july-16

Naming: Name cannot be same as DocType if not single