Update - method of object PmDatabase
It is used for ending the edit mode called by the Add
-1 - If an error occurred.
>=0 - Successful writing into or creation of the record.
All methods called in the midst of the Add
method and this method will be effective after its calling.