[util] Update import_flatfile.py for new DB format