Implemented ChapterIO and ScanGroupIO, + SQL updates