Fixed TentStorage database update.

During startup, set variable "ObjectUID" to objects.
If it's a TentStorage, set variable "ObjectID" = "0".