(no need to fix, but fyi) it's better practice to call `get_db` on the document class you are retreiving (e.g. `XFormInstance.get_db()`). This doesn't matter now with ~everything in the same db, but will allow us to more easily pull out docs into their own dbs eventually should we decide to.