better docstring for parse_file_data and updated error handling for shelve in build_database.py