fixed buddy class support bugs

buddy class wasn't checked for columns and foreign keys