Duplicate record

Added function that duplicates a record