Add active record, refactor requiring model clases