added generate_csv.py

A python script to do some basic checks on the database, and to
generate a csv file by parsing the yaml files associated with each
dataset.
cleaning up yaml files

so that python can read them
updated the initial yaml file

a few changes to make parsing more robust