make RepositoryBase concrete and have it extend AbstractRepository
refactor inflection on tablename
shouldn't have imported that