Using objects instead of strings in DB relationship definitions.