PK saved and updated in database. Generic update function added to
database.