added config file to config SOM on demand
adjust script for running in background to generate SOM
separate dbs for different purposes