Make deduplicate work again.  Only currently support 9.3 due to new postgresql functions added.