fix removal not decreasing db count