Added eager loading of nested records & relationships when viewing records.
Added missing foreign key definitions for the date table