Database's delete function seems to work