Create dir_list2.py

added database interaction