fixed db delete associations