samdb: use int for get and set methods instead of digit str