removing type from service unique key, making sure db deletes happen first