changing database creation to include writing file names to a seperate
table