fix urlconf errors by removing all module-level calls to .get_db() of a Document subclass
Merge pull request #593 from dimagi/urlconf-fix

gtg