starting to convert to python script to parse db file