Work in C++11 threads; untested.
Style cleanup.
Playing with threads.
Working DBConn thread.