extracted DocumentDatabase initialization