Add parentheses to each `where` condition.

I was having trouble doing things like `Thing.where('Id != NULL OR Id = NULL').where("Id = '123456789012345678'")`, which result in malformed queries.