Update data_to_db_2.py

added the function data_to_dictionary to store all the data in the folders in a custom shaped dictionary