get and set settings function added and tested.

set settings on existing record updates it.