added filename to file class and migrated database