everything works except append() creates duplicated records