Updates to cmake files to collect sql file names at the top level.