updating for python 3 compatability
adding migration for possible new way to traverse folder structure and reduce strain on DB