Removing unneeded memcpy from insertRecord()