added db_delete function