Added eager loading of nested records & relationships when viewing records.
Added missing foreign key definitions for the date table
Merge pull request #591 from hudmol/record-get-performance

Record get performance