trying fixing Deletion in database