Fixing case where table does not have an id field.