many changes

created the database and reworked the function responsible for creation of folders for each file.