review of active record and er diagrams