fixed db script for finding unique practices