fixed DELETE operation and added a check for company with same name