Updated database delete section.