split out tables in to folders