Study name shown with /studies is wrong

Also rename name field to id one in Study
This looks wrong. You're using the term name as id, but the whole point of your changes were to decouple the two things. You'll have to call `term.study.id`.