Added CSV functionality to BaseRepository