updated spectraperf and scripts to use conf file for database, refactore...

...d some stuff