fixed changes to the threading of database support and a few cleaning ups and the dsg interface exception catcher is included