trying to fixing db delete issue