Changed append to insert and it now works