tools for writing pgns to csv/dbs