cto 3.2.1 update

changed sql structure for file selection in tl_layout