Exceptions output through stringstream
Disabled some output in worker.h
New debug output in thread_safe_map.h
Changed timings for mutex waiting and delay to reduce amount of exceptions
* Implemented connection to real database
* fixed deadlock in exception handler for numthreads=0
* disabled immediate default value writing in thread_safe_map.h