added the ability to add datasources to the gen object in the script. the test script shows adding  a portgresql database connection. 
the next_record event not working as expected because would need to use map<> interface to allow the script to change the values of fields. would rather have implicit variables