added logic for get, set data, have duplicate record fail