Added SQL deleting.