Updated script to generate SQL from chado_svn without functions/views