Add membership:cleanup_duplicates task

We've been uppercasing SQL keywords for consistency.