added checking new record uuid duplicaion, removed old code