split sql files by doc type