script to grab file names and insert into a database table