Why are my database records duplicated instead of updated? | Catchr