from doc import Doc, Attachment, View
from docket import Docket
from agency import Agency
from entity import Entity
@@ -104,12 +104,119 @@
 mport Entity
+%0A%0Afrom mongoengine import connect%0Afrom settings import DB_NAME, DB_SETTINGS%0Aconnect(DB_NAME, **DB_SETTINGS)

Add database connection code.