A DB has a lot more obvious and strict context than a file of source code, and the law of demeter typically doesn't affect DB contexts as much as it does code, in practice.
In real code, it's unwise to expect the reader to study context just to parse a name.