import multiple files into database

i have a bunch of CSV files and an existing database schema that they are supposed to fit. is there a way to loop through the files and import them into the appropriate tables? i’ve tried a loop over the contents of the folder where they live, but attempting to write the second file throws an error that the file doesn’t match the table schema (of the first file)

i tried both the DB Writer and DB Insert nodes and get the same error (yes, having both there causes issues. that’s not the problem)