always instantiate TemporaryDocument __of__ db