Set up mapping to case classes for tables, continue repository test