Fixed the update bug added in the last commit

Fixed the bug when moving from 'wished' to 'collected' that would result
in a double entry in the table.