This method updates an object in the database.
Extreme care shall be taken to avoid mixing objects of different types
A UID of the object updated. 0 if the object to store is null (it is not stored).
UID is a unique identifier for an object within the database.
It can be used to identify the object within the database, for example, between page loads in the web applications.